<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script type="module">
        import MaxHeap from './MaxHeap.js';

        const maxHeap = new MaxHeap();
        maxHeap.insert(2);
        maxHeap.insert(3);
        maxHeap.insert(4);
        maxHeap.insert(5);

        maxHeap.insert(1);

        console.log('Heap size: ', maxHeap.size()); // 5
        console.log('Heap min value: ', maxHeap.findMinimum()); // 5
        console.log('Heap max value: ', maxHeap.findMaxmum()); // 5

        console.log(maxHeap);
        
        console.log('Extract Maxmum: ', maxHeap.extract()); // 1
        console.log(maxHeap);
        </script>
</body>
</html>